Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Darwin: [load] from memory

Closed / Fixed1202209fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-05-15 05:38:12
Darwin 7 or later can load .bundle dynamically loadable binaries 
from memory; this allows direct [load]ing of such binaries from 
VFS, instead of having to first copy them out of VFS to a 
temporary location as is done in the core currently.

The attached patch adds that capability to TclLoadFile() in 
tclIOUtil.c (when TCL_LOAD_FROM_MEMORY is #defined), 
through new platform specific procs TclpLoadMemoryGetBuffer() 
and TclpLoadMemory().

These are only implemented in tclLoadDyld.c at present, but other 
platforms may have the capability to load binary code from 
memory as well?

I would be grateful for review and comments on the tclIOUtil.c 
changes, esp concerning availability of loading code from memory 
on other platforms.

Given that this change only affects internal APIs I don't believe it 
needs to be TIPd but the requirements of other platforms should 
be considered in the design...

The patch also has contains other independent fixes & 
improvements to tclLoadDyld.c
dasplain2005-05-15 12:38:12
File Added - 134518: load_from_memory-HEAD.diff
dasplain2005-05-15 12:38:57
File Added - 134519: load_from_memory-core-8-4-branch.diff
dasplain2005-05-24 03:30:01
Logged In: YES 
user_id=90580

committed to HEAD
dasplain2005-05-24 11:24:54
Logged In: YES 
user_id=90580

committed to core-8-4-branch
Log in (anonymous is fine) to add a comment.

Attachments: