aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/gc_implementation
diff options
context:
space:
mode:
authorstefank <none@none>2014-11-11 13:45:21 +0100
committerstefank <none@none>2014-11-11 13:45:21 +0100
commite307009f8ff2499c4f522a6b6900e9fa116e1707 (patch)
tree25e22832b7771192d1c72edb64c352293dc21084 /src/share/vm/gc_implementation
parent15ea40b4a459665fc2a4579a27dd25a264249f7a (diff)
downloadjdk8u_hotspot-e307009f8ff2499c4f522a6b6900e9fa116e1707.tar.gz
8064556: G1: ParallelGCThreads=0 may cause assert(!MetadataOnStackMark::has_buffer_for_thread(Thread::current())) failed: Should be empty
Reviewed-by: mgerdin, tschatzl
Diffstat (limited to 'src/share/vm/gc_implementation')
-rw-r--r--src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
index 86b24a1ad..b7490f6b1 100644
--- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
+++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp
@@ -5228,7 +5228,9 @@ public:
}
void pre_work_verification() {
- assert(!MetadataOnStackMark::has_buffer_for_thread(Thread::current()), "Should be empty");
+ // The VM Thread will have registered Metadata during the single-threaded phase of MetadataStackOnMark.
+ assert(Thread::current()->is_VM_thread()
+ || !MetadataOnStackMark::has_buffer_for_thread(Thread::current()), "Should be empty");
}
void post_work_verification() {