-
Notifications
You must be signed in to change notification settings - Fork 394
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
Remove method with definite value for simplicity #5409
Conversation
compiler/infra/SimpleRegex.cpp
Outdated
@@ -475,10 +475,8 @@ bool SimpleRegex::match( | |||
bool isCaseSensitive) | |||
{ | |||
TR::Compilation *comp = TR::comp(); | |||
TR::StackMemoryRegion stackMemoryRegion(*comp->trMemory()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the memory lifetime of the data returned from signature and, possibly regex - why the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't realize the destructor will unregister the region, I was thinking it's unused instance, will revert the change and update.
Was the last commit supposed to address the review? I don't see the region being restored when I am looking at the code on github... |
Struggling with messed commits, still learning to merge them properly. |
@andrewcraik Now pls take a look of updated PR. |
@genie-omr build all |
@jamesgua I see you have added an extra commit with changes unrelated to the PR - can you please remove them and open a new PR for those if you wish to contribute them? We try to keep each PR to a logical change and these two changes appear to be unrelated. |
@jamesgua have you had a chance to look at this? The contribution you were looking to make would be welcome - if you could remove the unrelated change we can look to retest and accept the contribution - thanks! |
those methods return false and not referenced in other places except local
remove unused variable in member function
Signed-off-by: James Guan jamesgua@ca.ibm.com