| 
 | 
 | 
 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2393443003:
    [wasm] explicitly mark off unlinked wasm module instances  (Closed)
    
  
    Issue 
            2393443003:
    [wasm] explicitly mark off unlinked wasm module instances  (Closed) 
  | Created: 4 years, 2 months ago by Mircea Trofin Modified: 4 years, 2 months ago Reviewers: bradnelson CC: v8-reviews_googlegroups.com, Michael Hablich Target Ref: refs/pending/heads/master Project: v8 Visibility: Public. | Description[wasm] explicitly mark off unlinked wasm module instances
This fixes a gc stress bug. We cannot rely on an ordering of
clearing of the weak cells, so we explicitly reset the weak
link to the owning instance, when finalizing a compiled
module. In turn, this serves as a reliable signal when GCs
happen while instantiating, allowing us to correctly link the
new instance.
BUG=chromium:652425
Committed: https://crrev.com/c938f0df224b49d805503bbad98c4180f014e11a
Cr-Commit-Position: refs/heads/master@{#39964}
   Patch Set 1 : [wasm] reset owning instance explicitly #Patch Set 2 : [wasm] reset owning instance explicitly #Patch Set 3 : [wasm] reset owning instance explicitly #Patch Set 4 : [wasm] reset owning instance explicitly #
 Messages
    Total messages: 30 (25 generated)
     
 The CQ bit was checked by mtrofin@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/build...) v8_linux_mipsel_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mipsel_compile_rel...) 
 The CQ bit was checked by mtrofin@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was checked by mtrofin@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 Patchset #1 (id:1) has been deleted 
 Description was changed from ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. In addition, the CL introduces a simple tracing mechanism for wasm instantiation and finalization, and a debug-time unique instance identifier. BUG=chromium:652425 ========== to ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. In addition, the CL introduces a simple tracing mechanism for wasm instantiation and finalization, and a debug-time unique instance identifier. BUG=chromium:652425 ========== 
 mtrofin@chromium.org changed reviewers: + bradnelson@chromium.org 
 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 The CQ bit was checked by mtrofin@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 Description was changed from ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. In addition, the CL introduces a simple tracing mechanism for wasm instantiation and finalization, and a debug-time unique instance identifier. BUG=chromium:652425 ========== to ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. We cannot rely on an ordering of clearing of the weak cells, so we explicitly reset the weak link to the owning instance, when finalizing a compiled module. In turn, this serves as a reliable signal when GCs happen while instantiating, allowing us to correctly link the new instance. BUG=chromium:652425 ========== 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/buil...) v8_linux64_asan_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng_trig...) 
 The CQ bit was checked by mtrofin@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 The CQ bit was checked by bradnelson@chromium.org 
 lgtm 
 CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 
            
              
                Message was sent while issue was closed.
              
            
             Description was changed from ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. We cannot rely on an ordering of clearing of the weak cells, so we explicitly reset the weak link to the owning instance, when finalizing a compiled module. In turn, this serves as a reliable signal when GCs happen while instantiating, allowing us to correctly link the new instance. BUG=chromium:652425 ========== to ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. We cannot rely on an ordering of clearing of the weak cells, so we explicitly reset the weak link to the owning instance, when finalizing a compiled module. In turn, this serves as a reliable signal when GCs happen while instantiating, allowing us to correctly link the new instance. BUG=chromium:652425 ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             Committed patchset #4 (id:80001) 
 
            
              
                Message was sent while issue was closed.
              
            
             Description was changed from ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. We cannot rely on an ordering of clearing of the weak cells, so we explicitly reset the weak link to the owning instance, when finalizing a compiled module. In turn, this serves as a reliable signal when GCs happen while instantiating, allowing us to correctly link the new instance. BUG=chromium:652425 ========== to ========== [wasm] explicitly mark off unlinked wasm module instances This fixes a gc stress bug. We cannot rely on an ordering of clearing of the weak cells, so we explicitly reset the weak link to the owning instance, when finalizing a compiled module. In turn, this serves as a reliable signal when GCs happen while instantiating, allowing us to correctly link the new instance. BUG=chromium:652425 Committed: https://crrev.com/c938f0df224b49d805503bbad98c4180f014e11a Cr-Commit-Position: refs/heads/master@{#39964} ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             Patchset 4 (id:??) landed as https://crrev.com/c938f0df224b49d805503bbad98c4180f014e11a Cr-Commit-Position: refs/heads/master@{#39964} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
