--- a/hotspot/src/share/vm/runtime/sweeper.cpp Wed Aug 30 19:18:22 2017 -0400
+++ b/hotspot/src/share/vm/runtime/sweeper.cpp Thu Aug 31 08:18:47 2017 +0200
@@ -53,7 +53,7 @@
public:
int traversal;
int compile_id;
- jlong traversal_mark;
+ long traversal_mark;
int state;
const char* kind;
address vep;
@@ -62,7 +62,7 @@
void print() {
tty->print_cr("traversal = %d compile_id = %d %s uep = " PTR_FORMAT " vep = "
- PTR_FORMAT " state = %d traversal_mark "JLONG_FORMAT" line = %d",
+ PTR_FORMAT " state = %d traversal_mark %ld line = %d",
traversal,
compile_id,
kind == NULL ? "" : kind,
@@ -629,6 +629,7 @@
} else if (cm->is_not_entrant()) {
// If there are no current activations of this method on the
// stack we can safely convert it to a zombie method
+ OrderAccess::loadload(); // _stack_traversal_mark and _state
if (cm->can_convert_to_zombie()) {
// Clear ICStubs to prevent back patching stubs of zombie or flushed
// nmethods during the next safepoint (see ICStub::finalize).