diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-09-12 17:53:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-09-12 17:53:10 +0000 |
| commit | 7b412cb823f09378d45a0d0baf1127f4466c640c (patch) | |
| tree | d79f193b194b5334cf962adab1c2d92b94c96c1b /llvm/docs/GarbageCollection.html | |
| parent | 0249104aa542196e7ce43cb3e71d107c573a53b2 (diff) | |
| download | bcm5719-llvm-7b412cb823f09378d45a0d0baf1127f4466c640c.tar.gz bcm5719-llvm-7b412cb823f09378d45a0d0baf1127f4466c640c.zip | |
Change llvm.gcroot to not init the root to null at runtime, this prevents
using it for live-in values etc.
llvm-svn: 41879
Diffstat (limited to 'llvm/docs/GarbageCollection.html')
| -rw-r--r-- | llvm/docs/GarbageCollection.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/docs/GarbageCollection.html b/llvm/docs/GarbageCollection.html index 0accd0c78a0..e39e85ce3cd 100644 --- a/llvm/docs/GarbageCollection.html +++ b/llvm/docs/GarbageCollection.html @@ -166,9 +166,7 @@ interface that front-end authors should generate code for. The <tt>llvm.gcroot</tt> intrinsic is used to inform LLVM of a pointer variable on the stack. The first argument contains the address of the variable on the stack, and the second contains a pointer to metadata that should be associated -with the pointer (which <b>must</b> be a constant or global value address). At -runtime, the <tt>llvm.gcroot</tt> intrinsic stores a null pointer into the -specified location to initialize the pointer.</p> +with the pointer (which <b>must</b> be a constant or global value address).</p> <p> Consider the following fragment of Java code: @@ -193,6 +191,9 @@ Entry: %X = alloca %Object* ... + ;; Java null-initializes pointers. + store %Object* null, %Object** %X + ;; "CodeBlock" is the block corresponding to the start ;; of the scope above. CodeBlock: |

