# HG changeset patch # User Christos Kotselidis # Date 1372078364 -7200 # Node ID 3891371b2a3b014aa38bf3fb40a08145c5d1bc1d # Parent 0e849dd16591ee391ecf57864f87afe1cd63a8c9 Method renaming diff -r 0e849dd16591 -r 3891371b2a3b graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotReplacementsUtil.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotReplacementsUtil.java Mon Jun 24 14:49:17 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/HotSpotReplacementsUtil.java Mon Jun 24 14:52:44 2013 +0200 @@ -371,7 +371,7 @@ } @Fold - public static int logOfHRGrainBytes() { + public static int logOfHeapRegionGrainBytes() { return config().logOfHRGrainBytes; } diff -r 0e849dd16591 -r 3891371b2a3b graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/WriteBarrierSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/WriteBarrierSnippets.java Mon Jun 24 14:49:17 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/WriteBarrierSnippets.java Mon Jun 24 14:52:44 2013 +0200 @@ -149,7 +149,7 @@ Word indexValue = thread.readWord(HotSpotReplacementsUtil.g1CardQueueIndexOffset()); // The result of the xor reveals whether the installed pointer crosses heap regions. // In case it does the write barrier has to be issued. - Word xorResult = (field.xor(writtenValue)).unsignedShiftRight(HotSpotReplacementsUtil.logOfHRGrainBytes()); + Word xorResult = (field.xor(writtenValue)).unsignedShiftRight(HotSpotReplacementsUtil.logOfHeapRegionGrainBytes()); // Calculate the address of the card to be enqueued to the // thread local card queue.