harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject [drlvm][threadmanager] Fast thread local data access
Date Fri, 20 Oct 2006 10:15:02 GMT
All,

The TM architecture implies any component that needs to store threadlocal
data to reserve a slot:
extern HY_CFUNC IDATA VMCALL hythread_tls_alloc
PROTOTYPE((hythread_tls_key_t* handle));

The key can be used to get/set the allocated memory before its freed.

The problem is that JIT must know the final offset of the memory inside of
the TLS local struct to emit optimized code. The examples are: BBP, escape
analyzer, fast-helpers...
We can solve the task by adding  this method to the TM interface:

size_t hythread_tls_get_storage_offset(hythread_tls_key_t handle);

Is it OK?
If yes, could I do this or anyone else wants to do it by himself?

-- 
Mikhail Fursov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message