Skip to content

Commit d19f245

Browse files
committed
Share profile to save footprint
* While these profiles could differ significantly, these messages are never used on the same library instance so it's fine in practice and makes the library use less footprint. * Also avoids ECJ warning of unused field of [GR-51148].
1 parent 13ee3a5 commit d19f245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/truffleruby/core/hash/library/CompactHashStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Object delete(RubyHash hash, Object key,
217217
Object deleteLast(RubyHash hash, Object key,
218218
@Cached @Shared HashingNodes.ToHash hashFunction,
219219
@Cached @Shared GetIndexPosFromKeyPosNode getIndexPosFromKeyPosNode,
220-
@Cached @Exclusive InlinedLoopConditionProfile nonNullKeyNotYetFound,
220+
@Cached @Shared InlinedLoopConditionProfile nonNullKeyNotYetFound,
221221
@Bind("$node") Node node) {
222222
assert hash.size > 0;
223223
int keyPos = firstNonNullKeyPosFromEnd(nonNullKeyNotYetFound, node);
@@ -238,7 +238,7 @@ Object deleteLast(RubyHash hash, Object key,
238238
RubyArray shift(RubyHash hash,
239239
@Cached @Shared HashingNodes.ToHash hashFunction,
240240
@Cached @Shared GetIndexPosFromKeyPosNode getIndexPosFromKeyPosNode,
241-
@Cached @Exclusive InlinedLoopConditionProfile nonNullKeyNotYetFound,
241+
@Cached @Shared InlinedLoopConditionProfile nonNullKeyNotYetFound,
242242
@Bind("$node") Node node) {
243243
assert hash.size > 0;
244244
int keyPos = firstNonNullKeyPosFromBeginning(nonNullKeyNotYetFound, node);

0 commit comments

Comments
 (0)