Skip to content

Conversation

@LouisLaf
Copy link
Collaborator

FreeLoopBodyJobs also need a processed flag to avoid race conditions.
To free data associated with a JIT loopbody, we create a FreeLoopBodyJob. If we can't allocate one of these (OOM), we create one on the stack, and wait for it to be processed.
There was a race condition if we processed the job before starting to wait for it... The 'processed' flag avoids this.

To free data associated with a JIT loopbody, we create a FreeLoopBodyJob.  If we can't allocate one of these (OOM), we create one on the stack, and wait for it to be processed.
There was a race condition if we processed the job before starting to wait for it...  The 'processed' flag avoids this.
@LouisLaf
Copy link
Collaborator Author

@abchatra and @rajatd, please review.

@rajatd
Copy link
Contributor

rajatd commented May 14, 2016

:shipit:

1 similar comment
@abchatra
Copy link
Contributor

:shipit:

@chakrabot chakrabot merged commit 2414b30 into chakra-core:release/1.2 May 14, 2016
chakrabot pushed a commit that referenced this pull request May 14, 2016
Merge pull request #979 from LouisLaf:stackjob
FreeLoopBodyJobs also need a processed flag to avoid race conditions.
To free data associated with a JIT loopbody, we create a FreeLoopBodyJob.  If we can't allocate one of these (OOM), we create one on the stack, and wait for it to be processed.
There was a race condition if we processed the job before starting to wait for it...  The 'processed' flag avoids this.
chakrabot pushed a commit that referenced this pull request May 16, 2016
Merge pull request #979 from LouisLaf:stackjob
FreeLoopBodyJobs also need a processed flag to avoid race conditions.
To free data associated with a JIT loopbody, we create a FreeLoopBodyJob.  If we can't allocate one of these (OOM), we create one on the stack, and wait for it to be processed.
There was a race condition if we processed the job before starting to wait for it...  The 'processed' flag avoids this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants