Skip to content

Commit 5a81ef5

Browse files
committed
[GR-26820] Move Frame.clear from 21.0 to 21.1.
PullRequest: graal/7960
2 parents 780ce3d + 34eca8a commit 5a81ef5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

truffle/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This changelog summarizes major changes between Truffle versions relevant to lan
88
* Added `TruffleInstrument.Env.calculateContextHeapSize(TruffleContext, long, AtomicBoolean)` to calculate the heap size retained by a a context.
99
* Added `ContextsListener.onLanguageContextCreate`, `ContextsListener.onLanguageContextCreateFailed`, `ContextsListener.onLanguageContextInitialize`, and `ContextsListener.onLanguageContextInitializeFailed` to allow instruments to listen to language context creation start events, language context creation failure events, language context initialization start events, and language context initialization failure events, respectively.
1010
* Added `CompilerDirectives.isExact(Object, Class)` to check whether a value is of an exact type. This method should be used instead of the `value != null && value.getClass() == exactClass` pattern.
11+
* Added `Frame.clear(FrameSlot)`. This allows the compiler to reason about the liveness of local variables. Languages are recommended to use it when applicable.
1112

1213
## Version 21.0.0
1314
* If an `AbstractTruffleException` is thrown from the `ContextLocalFactory`, `ContextThreadLocalFactory` or event listener, which is called during the context enter, the excepion interop messages are executed without a context being entered. The event listeners called during the context enter are:
@@ -23,7 +24,6 @@ This changelog summarizes major changes between Truffle versions relevant to lan
2324
* Truffle DSL generated nodes are no longer limited to 64 state bits. Use these state bits responsibly.
2425
* Added support for explicitly selecting a host method overload using the signature in the form of comma-separated fully qualified parameter type names enclosed by parentheses (e.g. `methodName(f.q.TypeName,java.lang.String,int,int[])`).
2526
* Changed the default value of `--engine.MultiTier` from `false` to `true`. This should significantly improve the warmup time of Truffle interpreters.
26-
* Added `Frame.clear(FrameSlot)`. This allows the compiler to reason about the liveness of local variables. Languages are recommended to use it when applicable.
2727

2828
## Version 20.3.0
2929
* Added `RepeatingNode.initialLoopStatus` and `RepeatingNode.shouldContinue` to allow defining a custom loop continuation condition.

truffle/src/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public interface Frame {
270270
* Liveness analysis implementations are expected to clear unused slots on method entry
271271
*
272272
* @param slot the slot of the local variable
273-
* @since 21.0
273+
* @since 21.1
274274
*/
275275
default void clear(FrameSlot slot) {
276276
throw new UnsupportedOperationException();

0 commit comments

Comments
 (0)