2
0

testinputheap 909 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pattern framesize, memory
  2. /abcd/
  3. abcd\=memory
  4. abcd\=find_limits
  5. /(((((((((((((((((((((((((((((( (^abc|xyz){1,20}$ ))))))))))))))))))))))))))))))/x
  6. abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcX\=memory
  7. abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcX\=find_limits
  8. /ab(cd)/
  9. abcd\=memory
  10. abcd\=memory,ovector=0
  11. /\[(a)]{1000}/expand,framesize
  12. \[a]{1000}\=ovector=1
  13. # The heapframes_size option gets pcre2test to show the size of the heapframes
  14. # vector that after pcre2_match() has run. Running a match with ovector=0
  15. # causes the match data block to be freed, thus releasing that vector.
  16. /\[(a)]{1000}/expand,framesize
  17. \[a]{1000}\=ovector=1,heapframes_size
  18. /a/heapframes_size,framesize
  19. a\=ovector=0
  20. /a|(b){200}/g,expand,heapframes_size
  21. abacus z\[b]{200}z
  22. a\=ovector=0
  23. /(a)/replace=>$1<
  24. cat\=heapframes_size
  25. # End