]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: cygheap: make bucket_val a static const array
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 28 Oct 2022 15:02:05 +0000 (17:02 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 28 Oct 2022 15:02:05 +0000 (17:02 +0200)
commit3e80956d63eb26c40d05ecc44990b157a44db99a
tree792bbab44a49a13d21320be79ce9d84eb1bce6e1
parent389f071f443ae1003d062649679aae79c248b3af
Cygwin: cygheap: make bucket_val a static const array

Every time the cygheap is initialized, that is, on each fork
or exec, cygheap_init() *again* computes the bucket size values
and stores them in the cgyheap, albeit they are always the
same values anyway.

Make bucket_val a local const array, statically initialized
instead.

Fixes: 61522196c715 ("* Merge in cygwin-64bit-branch.)"
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/local_includes/cygheap.h
winsup/cygwin/mm/cygheap.cc
This page took 0.02985 seconds and 5 git commands to generate.