Skip to content

FreeLoopBodyJobs race condition. #979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2016

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