aboutsummaryrefslogtreecommitdiffstats
path: root/parser_st.c
Commit message (Collapse)AuthorAgeFilesLines
* Define `NO_SANITIZE` with reference to ext/bigdecimal/missing.cjinroq2023-07-011-0/+10
|
* Fix memory leak when copying ST tablesPeter Zhu2023-06-291-0/+2
| | | | | | | | | | | | | | | | | st_copy allocates a st_table, which is not needed for hashes since it is allocated by VWA and embedded, so this causes a memory leak. The following script demonstrates the issue: ```ruby 20.times do 100_000.times do {a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 8, i: 9} end puts `ps -o rss= -p #{$$}` end ```
* De-duplicate parse_st.c code from st.cNobuyoshi Nakada2023-06-241-2021/+5
|
* Remove `st_functions_t`Nobuyoshi Nakada2023-06-241-17/+16
|
* Copy `nonempty_memcpy` without ruby implementationNobuyoshi Nakada2023-06-161-4/+15
|
* Suppress redefined macro warningsNobuyoshi Nakada2023-06-161-0/+39
|
* [Feature #19719] Universal Parseryui-knk2023-06-121-0/+2118
Introduce Universal Parser mode for the parser. This commit includes these changes: * Introduce `UNIVERSAL_PARSER` macro. All of CRuby related functions are passed via `struct rb_parser_config_struct` when this macro is enabled. * Add CI task with 'cppflags=-DUNIVERSAL_PARSER' for ubuntu.