Skip to content

Commit 26f5c5f

Browse files
author
Thomas Schatzl
committed
sysbarrier
1 parent 80ccc98 commit 26f5c5f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,9 @@ void G1BarrierSetC2::post_barrier(GraphKit* kit,
468468
Node* card_val = __ load(__ ctrl(), card_adr, TypeInt::INT, T_BYTE, Compile::AliasIdxRaw);
469469

470470
__ if_then(card_val, BoolTest::ne, young_card, unlikely); {
471-
kit->sync_kit(ideal);
472-
kit->insert_mem_bar(Op_MemBarVolatile, oop_store);
473-
__ sync_kit(kit);
471+
//kit->sync_kit(ideal);
472+
//kit->insert_mem_bar(Op_MemBarVolatile, oop_store);
473+
//__ sync_kit(kit);
474474

475475
Node* card_val_reload = __ load(__ ctrl(), card_adr, TypeInt::INT, T_BYTE, Compile::AliasIdxRaw);
476476
__ if_then(card_val_reload, BoolTest::ne, dirty_card); {

src/hotspot/share/gc/g1/g1DirtyCardQueue.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#include "utilities/pair.hpp"
5353
#include "utilities/quickSort.hpp"
5454
#include "utilities/ticks.hpp"
55+
#include "utilities/systemMemoryBarrier.hpp"
5556

5657
G1DirtyCardQueue::G1DirtyCardQueue(G1DirtyCardQueueSet* qset) :
5758
PtrQueue(qset),
@@ -447,7 +448,7 @@ class G1RefineBufferedCards : public StackObj {
447448
// setting the regions' tops in humongous allocation path).
448449
// It's okay that reading region's top and reading region's type were racy
449450
// wrto each other. We need both set, in any order, to proceed.
450-
OrderAccess::fence();
451+
SystemMemoryBarrier::emit();
451452
sort_cards(first_clean_index);
452453
return refine_cleaned_cards(first_clean_index);
453454
}

src/hotspot/share/runtime/globals.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ const int ObjectAlignmentInBytes = 8;
12881288
"supports sub-millisecond resolution with fractional values.") \
12891289
range(0, max_jlongDouble LP64_ONLY(/MICROUNITS)) \
12901290
\
1291-
product(bool, UseSystemMemoryBarrier, false, \
1291+
product(bool, UseSystemMemoryBarrier, true, \
12921292
"Try to enable system memory barrier if supported by OS") \
12931293
\
12941294
product(intx, NmethodSweepActivity, 4, \

0 commit comments

Comments
 (0)