File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/main/java/org/truffleruby/parser Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ Changes:
28
28
Performance:
29
29
30
30
* Sped up accesses to native memory through FFI::Pointer.
31
+ * All core files now make use of frozen ` String ` literals, reducing the number
32
+ of ` String ` allocations for core methods.
31
33
32
34
# 1.0 RC 10
33
35
Original file line number Diff line number Diff line change @@ -2880,10 +2880,7 @@ public RubyNode visitStrNode(StrParseNode node) {
2880
2880
final Rope rope = context .getRopeCache ().getRope (node .getValue (), node .getCodeRange ());
2881
2881
final RubyNode ret ;
2882
2882
2883
- // isFrozen() is set with the magic frozen_string_literal comment or the command line flag.
2884
- // For the command line flag, we do not want to apply it to the core library files.
2885
- // TODO (eregon, 28 Feb 2018): we should respect the magic comment in core (although not used currently).
2886
- if (node .isFrozen () && !inCore ()) {
2883
+ if (node .isFrozen ()) {
2887
2884
final DynamicObject frozenString = context .getFrozenStringLiteral (rope );
2888
2885
2889
2886
ret = new DefinedWrapperNode (context .getCoreStrings ().EXPRESSION ,
You can’t perform that action at this time.
0 commit comments