[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] FYI: java-nio adjustments for target/native
From: |
Tom Tromey |
Subject: |
Re: [cp-patches] FYI: java-nio adjustments for target/native |
Date: |
19 Jan 2006 08:58:39 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Roman" == Roman Kennke <address@hidden> writes:
Roman> That would most likely cause problems on these ports. The specific
Roman> problem is that these ports actually have a malloc() syscall, only that
Roman> it doesn't really do what you would expect, and the macro works around
Roman> that by calling another (platform specific) syscall that does what's
Roman> expected. The best thing I can offer is a shorter macro name.
You can always:
#undef malloc
#define malloc SomethingElse
It is unlikely that this is going to break something.
Roman> I am aware of that problem. Still I don't know how to solve that
Roman> problem. We simply cannot give away some of our ports, due to license
Roman> and other restrictions.
The macro idea is one way... it puts the cost on the targets, not on
Classpath.
Tom