excessive stack space usage in NTDLL

Marcus Meissner marcus at jet.franken.de
Mon Oct 3 06:14:02 CDT 2005


The stackspace usage in dlls/ntdll/directory.c is affecting
programs. One installer crashes because of it I suspect.

objdump -d directory.o|grep "sub.*[0-9a-f][0-9a-f][0-9a-f],%esp"

	wine_nt_to_unix_file_name	- 0x5f0	(1520 byte)
		(in this my sample program crashes)
	append_entry			- 0x2cc (716 byte)
	NtQueryDirectoryFile		- 0x22d4 (8916 byte!)

problematic also cdrom.o
	DVD_ReadKey 			- 0x84c
	CDROM_DeviceIoControl 		- 0x40c

	start_thread			- 0x830

	NtQuerySystemInformation	- 0x990

How best to reduce? Allocate space with RtlAllocateHeap()?

Ciao, Marcus

More information about the wine-devel mailing list