39 comments

Done.

"Vladimir Kondratyev" <vova@intellij.com> wrote in message
news:b6s3kq$74s$1@is.intellij.net...

Dear community,

>

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.

>
>

--
Best regards,
Vladimir Kondratyev
________________
JetBrains



0

Thank You VERY much!

Sincerely yours,
Vladimir Kondratyev
_____________________
JetBrains


kesh wrote:

Done.

"Vladimir Kondratyev" <vova@intellij.com> wrote in message
news:b6s3kq$74s$1@is.intellij.net...

>> Dear community,
>>
>> it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
>> There is a problem
>> http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
>> resolving of which is vital for us.
>> Please vote for this bug.
>>
>>
>> --
>> Best regards,
>> Vladimir Kondratyev
>> ________________
>> JetBrains

--
Best regards,
Vladimir Kondratyev
________________
JetBrains

0

The bug database seems to be offline at this moment, so I can't vote for
it:-( However the search engine still works and the bug summary states:

"Bug ID: 4724038 (fs) Add unmap method to MappedByteBuffer
java:classes_nio, (fs) Add unmap method to MappedByteBuffer, State: In
progress, request for enhancement, Reported: Jul 31, 2002, Release
reported against: 1.4"

I don't understand: Isn't this problem also present in previous jdk
releases?

Best regards,
Bas

Vladimir Kondratyev wrote:

Dear community,

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.


0

BTW, there is also a very important BugFix that must be made to StringBuffer, as most XML parsers rely on this class: (it concerns a memory leak when re-using buffers)

http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Please, vote for this bug too !!

Thanks, Dan/

0

I wondered this too, but couldn't be bothered to ask ;)

N.

Bas Leijdekkers wrote:

The bug database seems to be offline at this moment, so I can't vote
for it:-( However the search engine still works and the bug summary
states:

>

"Bug ID: 4724038 (fs) Add unmap method to MappedByteBuffer
java:classes_nio, (fs) Add unmap method to MappedByteBuffer, State: In
progress, request for enhancement, Reported: Jul 31, 2002, Release
reported against: 1.4"

>

I don't understand: Isn't this problem also present in previous jdk
releases?

>

Best regards,
Bas

>

Vladimir Kondratyev wrote:

>> Dear community,
>>
>> it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
>> There is a problem
>> http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
>> resolving of which is vital for us.
>> Please vote for this bug.


0

I could reach the bug database again, and have voted for this issue.

0

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.


Done.

May I ask how it affects IDEA?

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0

I don't understand: Isn't this problem also present in previous jdk
releases?


You are right. But we managed to hack it for previous jdk releases. With
1.4.2 the hack does not work.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Bas Leijdekkers" <basleijdekkers@hotmail.com> wrote in message
news:b6s4t5$96h$1@is.intellij.net...

The bug database seems to be offline at this moment, so I can't vote for
it:-( However the search engine still works and the bug summary states:

>

"Bug ID: 4724038 (fs) Add unmap method to MappedByteBuffer
java:classes_nio, (fs) Add unmap method to MappedByteBuffer, State: In
progress, request for enhancement, Reported: Jul 31, 2002, Release
reported against: 1.4"

>

I don't understand: Isn't this problem also present in previous jdk
releases?

>

Best regards,
Bas

>

Vladimir Kondratyev wrote:

Dear community,

>

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.

>


0

Aurora heavily uses memory mapped files (for different stuff). Sometimes it
is necessary to change underlying physical file (truncate for example) which
is not possible since this file is locked by mapped buffer we have no way to
unmap.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b6s7se$d32$2@is.intellij.net...

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.

>

Done.

>

May I ask how it affects IDEA?

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>


0

I'm wondering how did you hack it in 1.4.1...

/kesh

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgci$ucm$1@is.intellij.net...

Aurora heavily uses memory mapped files (for different stuff). Sometimes

it

is necessary to change underlying physical file (truncate for example)

which

is not possible since this file is locked by mapped buffer we have no way

to

unmap.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b6s7se$d32$2@is.intellij.net...

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.

>

Done.

>

May I ask how it affects IDEA?

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>

>
>


0

Reflection + force gc. They said it would be unmapped in finalize() which is
not true anymore.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"kesh" <ewr@rew.com> wrote in message news:b6sgje$uo4$1@is.intellij.net...

I'm wondering how did you hack it in 1.4.1...

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgci$ucm$1@is.intellij.net...

Aurora heavily uses memory mapped files (for different stuff). Sometimes

it

is necessary to change underlying physical file (truncate for example)

which

is not possible since this file is locked by mapped buffer we have no

way

to

unmap.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b6s7se$d32$2@is.intellij.net...

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.

>

Done.

>

May I ask how it affects IDEA?

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>

>
>

>
>


0

Even though that I don't understand exactly what your problem is, but after
poking around
I'd like to suggest the following hack to the problem
(the example is taken from
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html):

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.lang.reflect.*;
import java.io.*;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;

class TestMemoryMapping
{
public static void main(String[] args)
{
try
{
File f = File.createTempFile("Test", null);
f.deleteOnExit();
RandomAccessFile raf = new RandomAccessFile(f, "rw");
raf.setLength(1024);
FileChannel channel = raf.getChannel();
MappedByteBuffer buffer = channel.map(FileChannel.MapMode.READ_WRITE, 0,
1024);
channel.close();
raf.close();
clean(buffer);
buffer = null;

// System.gc();
if (f.delete())
System.out.println("Temporary file deleted: "+f);
else
System.out.println("Not yet deleted: "+f);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}

public static void clean(final Object buffer) throws Exception {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
try {
Method getCleanerMethod = buffer.getClass().getMethod("cleaner",
new Class[0]);
getCleanerMethod.setAccessible(true);
sun.misc.Cleaner cleaner =
(sun.misc.Cleaner)getCleanerMethod.invoke(buffer,new Object[0]);
cleaner.clean();
} catch(Exception e) {
e.printStackTrace();
}
return null;
}
});
}
}

It works even without uncommenting System.gc().

/kesh

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgls$urq$1@is.intellij.net...

Reflection + force gc. They said it would be unmapped in finalize() which

is

not true anymore.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"kesh" <ewr@rew.com> wrote in message news:b6sgje$uo4$1@is.intellij.net...

I'm wondering how did you hack it in 1.4.1...

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgci$ucm$1@is.intellij.net...

Aurora heavily uses memory mapped files (for different stuff).

Sometimes

it

is necessary to change underlying physical file (truncate for example)

which

is not possible since this file is locked by mapped buffer we have no

way

to

unmap.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b6s7se$d32$2@is.intellij.net...

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK

1.4.2.

There is a problem

>

http://developer.java.sun.com/developer/bugParade/bugs/4724038.html

resolving of which is vital for us.
Please vote for this bug.

>

Done.

>

May I ask how it affects IDEA?

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>

>
>

>
>

>
>


0

done

(hope we can make it matter)

0

I keep getting a server error when I click that link, all day now. blah

0

Done.

Vladimir Kondratyev wrote:

Dear community,

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.


0

It's strange: it seems they have removed the bug... I hope this means they have fixed it, but I'm afraid they haven't... there are some bugs that have been waiting for years in the bug database.

0

It's still there, I've had that sometimes, I think it's a server problem
their end.

N.

Davide Baroncelli wrote:

It's strange: it seems they have removed the bug... I hope this means
they have fixed it, but I'm afraid they haven't... there are some
bugs that have been waiting for years in the bug database.



0

When I voted early yesterday, the vote count was 16. Now it is more than
10x that at 167. Pretty good! And it has become a top ten bug at #10
(once the bug count top 25 page gets current). Maybe we can push it to
#9 or even #8.

Jon

0

Done!

Vladimir Kondratyev wrote:

Dear community,

it seems that we cannot allow to run IDEA (Aurora) under JDK 1.4.2.
There is a problem
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html
resolving of which is vital for us.
Please vote for this bug.


0

Wow! sun.misc.Cleaner appeared in last JDK beta. You're fast enough :)
Anyway thanks, we'll try this out.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"kesh" <ewr@rew.com> wrote in message news:b6sji1$36v$1@is.intellij.net...

Even though that I don't understand exactly what your problem is, but

after

poking around
I'd like to suggest the following hack to the problem
(the example is taken from
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html):

>

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.lang.reflect.*;
import java.io.*;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;

>

class TestMemoryMapping
{
public static void main(String[] args)
{
try
{
File f = File.createTempFile("Test", null);
f.deleteOnExit();
RandomAccessFile raf = new RandomAccessFile(f, "rw");
raf.setLength(1024);
FileChannel channel = raf.getChannel();
MappedByteBuffer buffer = channel.map(FileChannel.MapMode.READ_WRITE,

0,

1024);
channel.close();
raf.close();
clean(buffer);
buffer = null;

>

// System.gc();
if (f.delete())
System.out.println("Temporary file deleted: "+f);
else
System.out.println("Not yet deleted: "+f);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}

>

public static void clean(final Object buffer) throws Exception {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
try {
Method getCleanerMethod = buffer.getClass().getMethod("cleaner",
new Class[0]);
getCleanerMethod.setAccessible(true);
sun.misc.Cleaner cleaner =
(sun.misc.Cleaner)getCleanerMethod.invoke(buffer,new Object[0]);
cleaner.clean();
} catch(Exception e) {
e.printStackTrace();
}
return null;
}
});
}
}

>

It works even without uncommenting System.gc().

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgls$urq$1@is.intellij.net...

Reflection + force gc. They said it would be unmapped in finalize()

which

is

not true anymore.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"kesh" <ewr@rew.com> wrote in message

news:b6sgje$uo4$1@is.intellij.net...

I'm wondering how did you hack it in 1.4.1...

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgci$ucm$1@is.intellij.net...

Aurora heavily uses memory mapped files (for different stuff).

Sometimes

it

is necessary to change underlying physical file (truncate for

example)

which

is not possible since this file is locked by mapped buffer we have

no

way

to

unmap.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b6s7se$d32$2@is.intellij.net...

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK

1.4.2.

There is a problem

>

http://developer.java.sun.com/developer/bugParade/bugs/4724038.html

resolving of which is vital for us.
Please vote for this bug.

>

Done.

>

May I ask how it affects IDEA?

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>

>
>

>
>

>
>

>
>


0

It would be really great! :)


--
Best regards,
Vladimir Kondratyev
________________
JetBrains


Jon Steelman wrote:

When I voted early yesterday, the vote count was 16. Now it is more than
10x that at 167. Pretty good! And it has become a top ten bug at #10
(once the bug count top 25 page gets current). Maybe we can push it to
#9 or even #8.

Jon


0

You're welcome. Hope this helps to release a new build bundled with 1.4.2
:)

/kesh

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6uqrc$mmt$1@is.intellij.net...

Wow! sun.misc.Cleaner appeared in last JDK beta. You're fast enough :)
Anyway thanks, we'll try this out.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"kesh" <ewr@rew.com> wrote in message news:b6sji1$36v$1@is.intellij.net...

Even though that I don't understand exactly what your problem is, but

after

poking around
I'd like to suggest the following hack to the problem
(the example is taken from
http://developer.java.sun.com/developer/bugParade/bugs/4724038.html):

>

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.lang.reflect.*;
import java.io.*;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;

>

class TestMemoryMapping
{
public static void main(String[] args)
{
try
{
File f = File.createTempFile("Test", null);
f.deleteOnExit();
RandomAccessFile raf = new RandomAccessFile(f, "rw");
raf.setLength(1024);
FileChannel channel = raf.getChannel();
MappedByteBuffer buffer = channel.map(FileChannel.MapMode.READ_WRITE,

0,

1024);
channel.close();
raf.close();
clean(buffer);
buffer = null;

>

// System.gc();
if (f.delete())
System.out.println("Temporary file deleted: "+f);
else
System.out.println("Not yet deleted: "+f);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}

>

public static void clean(final Object buffer) throws Exception {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
try {
Method getCleanerMethod =

buffer.getClass().getMethod("cleaner",

new Class[0]);
getCleanerMethod.setAccessible(true);
sun.misc.Cleaner cleaner =
(sun.misc.Cleaner)getCleanerMethod.invoke(buffer,new Object[0]);
cleaner.clean();
} catch(Exception e) {
e.printStackTrace();
}
return null;
}
});
}
}

>

It works even without uncommenting System.gc().

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgls$urq$1@is.intellij.net...

Reflection + force gc. They said it would be unmapped in finalize()

which

is

not true anymore.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"kesh" <ewr@rew.com> wrote in message

news:b6sgje$uo4$1@is.intellij.net...

I'm wondering how did you hack it in 1.4.1...

>

/kesh

>

"Maxim Shafirov" <max@intellij.net> wrote in message
news:b6sgci$ucm$1@is.intellij.net...

Aurora heavily uses memory mapped files (for different stuff).

Sometimes

it

is necessary to change underlying physical file (truncate for

example)

which

is not possible since this file is locked by mapped buffer we have

no

way

to

unmap.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b6s7se$d32$2@is.intellij.net...

Vladimir Kondratyev wrote:

it seems that we cannot allow to run IDEA (Aurora) under JDK

1.4.2.

There is a problem

>

http://developer.java.sun.com/developer/bugParade/bugs/4724038.html

resolving of which is vital for us.
Please vote for this bug.

>

Done.

>

May I ask how it affects IDEA?

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>

>
>

>
>

>
>

>
>

>
>


0

182 votes by now. That's the same count as bug #8 in the Top 25 list. It wouldn't be unreal to get to #3 on #4 by the next few days :)

0

Please sign in to leave a comment.