Upgrading Python Breaks Extensions; Fix proposal

Ignacio Vazquez-Abrams ignacio at openservices.net
Wed Aug 29 06:11:12 EDT 2001


On Tue, 28 Aug 2001, John Roth wrote:

> Yes, as a matter of fact. The design goals for Unix and Windows were totally
> different. Under Unix, each program is its own address space, and .so
> modules are private resources once they're loaded. Under Windows, they
> are shared resources - the same physical memory copy can be used
> simultaniously by multiple users, and appears in multiple address spaces.

Not entirely true IIRC; the DS is copy-on-write. The whole purpose of thunking
is to load DS appropriately whenever a function stored in a DLL is called.

Yes, it's probably odd to store function pointers in the DS, but it would do,
wouldn't it?

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list