8139293: TestGCEventMixedWithG1ConcurrentMark.java fails after JDK-8134953

Reviewed-by: ecaspole, jwilhelm
This commit is contained in:
Bengt Rutisson 2015-10-09 20:31:56 +02:00
parent aeffdfc249
commit b266f13f2c
4 changed files with 11 additions and 1 deletions

View file

@ -60,6 +60,11 @@ GCIdMark::~GCIdMark() {
}
GCIdMarkAndRestore::GCIdMarkAndRestore() : _gc_id(GCId::create()) {
_previous_gc_id = GCId::current(); // will assert that the GC Id is not undefined
currentNamedthread()->set_gc_id(_gc_id);
}
GCIdMarkAndRestore::GCIdMarkAndRestore(uint gc_id) : _gc_id(gc_id) {
_previous_gc_id = GCId::current(); // will assert that the GC Id is not undefinied
currentNamedthread()->set_gc_id(_gc_id);
}