Tcl Source Code

View Ticket
Login
Ticket UUID: 1202209
Title: Darwin: [load] from memory
Type: Bug Version: None
Submitter: das Created on: 2005-05-15 05:38:12
Subsystem: 37. File System Assigned To: das
Priority: 6 Severity:
Status: Closed Last Modified: 2005-05-24 11:24:54
Resolution: Fixed Closed By: das
    Closed on: 2005-05-24 04:24:54
Description:
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
User Comments: das added on 2005-05-24 11:24:54:
Logged In: YES 
user_id=90580

committed to core-8-4-branch

das added on 2005-05-24 03:30:01:
Logged In: YES 
user_id=90580

committed to HEAD

das added on 2005-05-15 12:38:57:

File Added - 134519: load_from_memory-core-8-4-branch.diff

das added on 2005-05-15 12:38:12:

File Added - 134518: load_from_memory-HEAD.diff

Attachments: