Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 608A417C5B for ; Tue, 8 Sep 2015 15:02:50 +0000 (UTC) Received: (qmail 94891 invoked by uid 500); 8 Sep 2015 15:02:46 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 94802 invoked by uid 500); 8 Sep 2015 15:02:46 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 94761 invoked by uid 99); 8 Sep 2015 15:02:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2015 15:02:46 +0000 Date: Tue, 8 Sep 2015 15:02:46 +0000 (UTC) From: "Otmar Ertl (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-1262) Heap overflow in org.apache.commons.math4.special.BesselJ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14734949#comment-14734949 ] Otmar Ertl commented on MATH-1262: ---------------------------------- +1 for updating Javadoc and adding a note that memory needs are proportional to the order. > Heap overflow in org.apache.commons.math4.special.BesselJ > --------------------------------------------------------- > > Key: MATH-1262 > URL: https://issues.apache.org/jira/browse/MATH-1262 > Project: Commons Math > Issue Type: Bug > Affects Versions: 4.0 > Reporter: Neil Walkinshaw > Priority: Minor > Labels: newbie, performance > > This test case: > {code:java} > import org.apache.commons.math4.special.BesselJ; > public class BesselJHeapBug { > public static void main(String[] args) { > BesselJ.value(1182054491, 3.589635306407856E-8D); > } > } > {code} > throws the following exception: > {code} > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at org.apache.commons.math4.special.BesselJ.rjBesl(BesselJ.java:247) > at org.apache.commons.math4.special.BesselJ.value(BesselJ.java:161) > at BesselJHeapBug.main(BesselJHeapBug.java:5) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)