Skip to content

Commit 5328deb

Browse files
committed
Follow Benoit Daloze comments
1 parent a032c56 commit 5328deb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

truffle/docs/AOTOverview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For more information see [TruffleLanguage.patchContext](https://www.graalvm.org/
2828
### Code sharing within the same Isolate/Process
2929

3030
A polyglot engine can be used in order to determine the scope of code sharing between contexts.
31-
An example of how that can be done can be found in the [reference manual](https://www.graalvm.org/reference-manual/embed-languages/#code-caching-across-multiple-contexts).
31+
An example of how that can be done can be found in the [reference manual](../../docs/reference-manual/embedding/embed-languages.md#code-caching-across-multiple-contexts).
3232
When a language is initialized for a polyglot context, a new language instance is requested from an engine.
3333
If the language supports [ContextPolicy.SHARED](https://www.graalvm.org/truffle/javadoc/com/oracle/truffle/api/TruffleLanguage.ContextPolicy.html#SHARED), then the language instance will be reused for an engine instance.
3434
The source parsing cache is associated with a language instance, so parsing happens once per language instance.

truffle/docs/AuxiliaryEngineCachingEnterprise.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This includes:
1919
2. Execution and profiling of the guest application in the interpreter.
2020
3. Compilation of the AST to machine code.
2121

22-
Within a single OS process, the work performed during warmup can be shared by specifying an [explicit engine](../../reference-manual/embedding/embed-languages.md/#code-caching-across-multiple-contexts).
22+
Within a single OS process, the work performed during warmup can be shared by specifying an [explicit engine](../../docs/reference-manual/embedding/embed-languages.md#code-caching-across-multiple-contexts).
2323
This requires language implementations to disable context-related optimizations to avoid deoptimizations between contexts that share code.
2424
Auxiliary engine caching builds upon the mechanism for disabling context-related optimizations and adds the capability to persist an engine with ASTs and optimized machine code to disk.
2525
This way, the work performed during warmup can be significantly reduced in the first application context of a new process.

0 commit comments

Comments
 (0)