[pcre-dev] [Bug 2517] New: Feature Request: Option for slji…

Página Inicial
Delete this message
Autor: admin
Data:  
Para: pcre-dev
Novos Tópicos: [pcre-dev] [Bug 2517] Feature Request: Option for sljit_allocate_stack to use provided allocator, [pcre-dev] [Bug 2517] Feature Request: Option for sljit_allocate_stack to use provided allocator
Assunto: [pcre-dev] [Bug 2517] New: Feature Request: Option for sljit_allocate_stack to use provided allocator
https://bugs.exim.org/show_bug.cgi?id=2517

            Bug ID: 2517
           Summary: Feature Request: Option for sljit_allocate_stack to
                    use provided allocator
           Product: PCRE
           Version: 10.34 (PCRE2)
          Hardware: x86
                OS: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: kkilger@???
                CC: pcre-dev@???


Dear PCRE2 Team,

If have a question regarding the direct calls to mmap/VirtualAlloc in, e.g.
sljit_allocate_stack. It is not very clear to me why they are needed, as a user
supplied allocator is available.

In my environment, where everything is in shared memory, the current approach
doesn't work.

I changed the coding locally to just call SLJIT_MALLOC and everything works
just as fine. Also 500k are not that much memory in 2020 for a normal memory
allocator. No need to bother the operating system.

All the logic simplifies considerably and even the whole "page size" stuff is
not really needed.

Would it be possible to include this via a compile time flag? I could even try
to share my coding.

Best regards,
Kilian.

--
You are receiving this mail because:
You are on the CC list for the bug.