-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add jit_stack_size option #782
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
Closed
Closed
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
dd7128f
WIP: Add jit_stack_size option
alubbe 2a47582
Fix build, add guards and extract magic numbers
alubbe b74c736
Add ffi implementation
alubbe 3fe572b
Add non-ffi implementation
alubbe ff91139
Add tests
alubbe 188935f
Fix segfault by introducing a memory leak
alubbe 5f5b6ca
Fix compiler warnings
alubbe b7c71f5
Update 062-count test to reflect that ngx.re now has 6 methods
alubbe 5ff6a75
Add back empty space that was removed by editor settings
alubbe 1529aaa
Default lmcf->jit_stack to NULL, fix memory leak and add error messages
alubbe 87838da
Expose ngx_http_lua_set_jit_stack_size so that ffi can call it
alubbe db057fb
Remove duplicate # blocks
alubbe 7c3f7d8
Disallow the changing of jit_stack_size once regex cache is populated
alubbe a9b52cb
Add test "passing unknown options to ngx.re.opt throws an error"
alubbe c10f4d5
Style: Align strings and keep line length under 80 chars
alubbe ef13eb2
Use *_by_lua_block in new tests
alubbe 2c261c9
Incorporate style feedback
alubbe 2337c8c
Add more pcre jit guards
alubbe 15a7a0d
Avoid magic numbers
alubbe aafc6e1
Pass a length to ngx_strncmp
alubbe 87a8b61
travis
alubbe 9498bf4
Add documentation for ngx.re.opt
alubbe 1d2e80c
Avoid more magic numbers
alubbe a56355a
Add documentation to wiki file
alubbe 7e858bd
Update tests to check ngx.re.opt in content_by_lua
alubbe d649809
Fix return value of ngx_http_lua_ngx_re_opt
alubbe d947745
Call ngx_http_lua_pcre_malloc_{init,done} around pcre_{malloc,free}
alubbe d8c8968
Mark ngx_http_lua_set_jit_stack_size as ffi
alubbe cad4ee3
Test 33: Use grep_error_log to pass the second test iteration
alubbe becfeda
Simplify test 33
alubbe f1001a9
Fix test 33
alubbe cd9bb70
Repair test 33
alubbe e024b8f
Repair rebase artifacts
alubbe 4c735a5
Remove Lua-5.1 api
alubbe c4c74de
Remove temporary file
alubbe 3b2356c
Remove check that no regexs have been compiled
alubbe 89318e5
Guard against 'sd' being NULL
alubbe 9a00386
Return error in ngx_http_lua_ffi_set_jit_stack_size if no JIT is avai…
alubbe bbcc991
Spacing
alubbe cc6564b
Return NGX_DECLINED when pcre jit is not found
alubbe 5a6cd87
Pass error messages from C to Lua
alubbe e40dd9a
Add missing pointer declaration
alubbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Now that we define these macros in this
common.h
header that is included in all the other compilation units (directly or indirectly), we should remove the duplicate definitions fromregex.c
I think?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.
Done.