There are numerous places that malloc/free have crept back into the
main share runtime code. We did a good job of chaning these in JDK1.1.
These need to be replaced since some licenses do not use malloc/free
but the cover routines.
There are also places that we use strdup, which calls malloc and can
cause memory leaks.
use the following find command:
find . -name SCCS -prune -o -name '*.[ch]' -exec grep " .alloc(" /dev/null {} \;
find . -name SCCS -prune -o -name '*.[ch]' -exec grep " free(" /dev/null {} \;
main share runtime code. We did a good job of chaning these in JDK1.1.
These need to be replaced since some licenses do not use malloc/free
but the cover routines.
There are also places that we use strdup, which calls malloc and can
cause memory leaks.
use the following find command:
find . -name SCCS -prune -o -name '*.[ch]' -exec grep " .alloc(" /dev/null {} \;
find . -name SCCS -prune -o -name '*.[ch]' -exec grep " free(" /dev/null {} \;
- duplicates
-
JDK-4130758 (porting) Need general embedding API
-
- Closed
-